<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<!--框架必需start-->
		<script type="text/javascript" src="../../libs/js/jquery.js"></script>
		<script type="text/javascript" src="../../libs/js/language/cn.js"></script>
		<script type="text/javascript" src="../../libs/js/framework.js"></script>
		<link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" id="skin" prePath="../../" />
		<link rel="stylesheet" type="text/css" id="customSkin" />
		<!--框架必需end-->
		<link rel="stylesheet" type="text/css" href="style/style.css" />

		
		<script src="../../libs/js/table/quiGrid.js" type="text/javascript"></script>
		<style type="text/css">
			.l-grid-row-cell-inner{
			  line-height:25px;
			  height:auto!important;
			}
			.l-grid-row-cell-inner-title{
			  height: auto;
			  line-height: 42px;
			}
			.l-grid-row-cell-con-checkbox{
			  padding-top: 4px;
			}
		</style>
	</head>

	<body>
		<div class="page_content">
			<div class="infoCard" style="">
				<div class="title">
					<span>基本资料</span>
				</div>
				<div class="Purchase_content_win">
					<table border="0" cellspacing="0" cellpadding="0" class="Purchase_content">
						<tr>
							<td style="text-align: right;width: 100px;">录入日期</td>
							<td>2017/8/28 15:15:13</td>
							<td style="text-align: right;width: 100px;">收货人类型</td>
							<td>门店</td>
							<td style="text-align: right;width: 100px;">选择收货人</td>
							<td>河北定州上不去连锁店</td>
							<td style="text-align: right;width: 100px;">备注</td>
							<td>公司特卖调拨，卖不完退回大仓</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="infoCard" style="margin-top: 20px;">
				<div class="title">
					<span>快递信息</span>
				</div>
				<div class="Purchase_content_win">
					<table border="0" cellspacing="0" cellpadding="0" class="Purchase_content">
						<tr>
							<td style="text-align: right;width: 100px;">收货联系人</td>
							<td>河北定州上不去连锁店</td>
							<td style="text-align: right;width: 100px;">收货人联系电话</td>
							<td>15534123312</td>
							<td style="text-align: right;width: 100px;">收货人地址</td>
							<td>河北定州上不去科技有限公司</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="infoCard" style="margin-top: 20px;">
				<div class="title">
					<span>扫码入库</span>
				</div>
				<div class="Purchase_content_win">
					<table border="0" cellspacing="0" cellpadding="0" class="">
						<tr>
							<td style="width: 100px;">商品有效期</td>
							<td><input type="text" name="" id="" placeholder="出厂日期" style="width: 300px;"/></td>
							<td style="padding-left: 20px;"><input type="text" name="" id="" placeholder="到期日期" style="width: 300px;"/></td>
						</tr>
						<tr>
							<td style="width: 100px;padding-top: 20px;">
								<p>商品编号</p>
								<p>已入库：0</p>
							</td>
							<td colspan="2" style="vertical-align: top;padding-top: 20px;"><input type="text" name="" id="" placeholder="出厂日期" style="width: 620px;"/></td>
						</tr>
					</table>
				</div>
			</div>
			
			<div class="infoCard infoCard2" style="margin-top: 20px;">
				<div class="title">
					<span>产品资料</span>
				</div>
				<div id="dataBasic"></div>
				<div class="Purchase_content_win" style="padding: 20px 15px;border-bottom: 1px solid #F0F0F0;">
					<table border="0" cellspacing="0" cellpadding="0" class="Purchase_content">
						<tr>
							<td style="text-align: right;width: 100px;">产品合计</td>
							<td>10</td>
							<td style="text-align: right;width: 100px;">数量合计</td>
							<td>12</td>
							<td style="text-align: right;width: 100px;">合计金额</td>
							<td>804</td>
						</tr>
					</table>
				</div>
				<div class="Purchase_back">
					<input type="button" name="" id="" value="返 回" onclick="window.location='oa_47.html'" class="primary"/>
					
				</div>
			</div>
		</div>

		<script type="text/javascript">
			var grid = null;
			//数据表格使用
			var gridData = {
				"form.paginate.pageNo": 1,
				"form.paginate.totalRows": 13,
				"rows": [{
						"id": 5418,
						"Barcode": "2315213131",
						"return_num": 2,
						"In_warehouse_num": 0,
						"warehouse_num": 0,
						"Validity_time": "无",
						"Commodity_information": "奥迪变形机器人<br />规格：小飞侠度度"
					},{
						"id": 5418,
						"Barcode": "2315213131",
						"return_num": 2,
						"In_warehouse_num": 0,
						"warehouse_num": 0,
						"Validity_time": "无",
						"Commodity_information": "奥迪变形机器人<br />规格：小飞侠度度"
					},{
						"id": 5418,
						"Barcode": "2315213131",
						"return_num": 2,
						"In_warehouse_num": 0,
						"warehouse_num": 0,
						"Validity_time": "无",
						"Commodity_information": "奥迪变形机器人<br />规格：小飞侠度度"
					},{
						"id": 5418,
						"Barcode": "2315213131",
						"return_num": 2,
						"In_warehouse_num": 0,
						"warehouse_num": 0,
						"Validity_time": "无",
						"Commodity_information": "奥迪变形机器人<br />规格：小飞侠度度"
					},{
						"id": 5418,
						"Barcode": "2315213131",
						"return_num": 2,
						"In_warehouse_num": 0,
						"warehouse_num": 0,
						"Validity_time": "无",
						"Commodity_information": "奥迪变形机器人<br />规格：小飞侠度度"
					},{
						"id": 5418,
						"Barcode": "2315213131",
						"return_num": 2,
						"In_warehouse_num": 0,
						"warehouse_num": 0,
						"Validity_time": "无",
						"Commodity_information": "奥迪变形机器人<br />规格：小飞侠度度"
					},{
						"id": 5418,
						"Barcode": "2315213131",
						"return_num": 2,
						"In_warehouse_num": 0,
						"warehouse_num": 0,
						"Validity_time": "无",
						"Commodity_information": "奥迪变形机器人<br />规格：小飞侠度度"
					}
				]
			}

			function initComplete() {
				grid = $("#dataBasic").quiGrid({
					columns: [{
							display: '编码',
							name: 'id',
							width: "10%"
						},{
							display: '条码',
							name: 'Barcode',
							width: "10%"
						},{
							display: '退货数量',
							name: 'return_num',
							width: "10%"
						},{
							display: '以入库数量',
							name: 'In_warehouse_num',
							width: "10%"
						},{
							display: '正在入库数量',
							name: 'warehouse_num',
							width: "20%",
							render: function(rowdata, rowindex, value, column) {
								var mainCon = $('<div></div>');
								var con = $('<input class="purchased purchased2" type="text" value="'+rowdata.warehouse_num+'"/>');
								mainCon.append(con);
								return mainCon.html();
							}
						},{
							display: '效期',
							name: 'Validity_time',
							width: "20%"
						},{
							display: '商品信息',
							name: 'Commodity_information',
							width: "20%"
						}
					],
					data: gridData,
					sortName: 'id',
					rownumbers: false,
					checkbox: false,
					height: "auto",
					width: "100%",
					usePager: false,
					pageSize: 10,
					percentWidthMode: true,
					onAfterShowData: onAfterShowData

				});
			}
			function onAfterShowData(data) {
				$("#dataBasic").find(".popupMenu").each(function() {
					$(this).hover(function() {
						$(this).find(".popupMenu_con").show();
					}, function() {
						$(this).find(".popupMenu_con").hide();
					});
				})
			}
			
			function Purchase_back(){
				window.location='';
			}
		</script>
	</body>

</html>